/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ac.za.cput.kleintjes.question2.alt_to_encapsulation.services.impl;

import ac.za.cput.kleintjes.question2.alt_to_encapsulation.model.Animal;

/**
 * @author Administrator
 */
public class Dog
{
    private String name;
    private Animal animalDetials = new Animal();
    
    public Dog() {
    }

    public Dog(String bread, int steps, int humanYears, String name) {
        animalDetials.setBread(bread);
        animalDetials.setHumanYears(humanYears);
        this.name = name;
    }
    
    public String getBread() {
        return animalDetials.getBread();
    }

    public void setBread(String bread) {
        animalDetials.setBread(bread);
    }

    public int getHumanYears() {
        return animalDetials.getHumanYears();
    }

    public void setHumanYears(int humanYears) {
        animalDetials.setHumanYears(humanYears);
    }

    public String getName() {
        return animalDetials.getName();
    }

    public void setName(String name) {
        animalDetials.setName(name);
    }
    
}
